package com.ruoyi.lightkillPest.mapper;

import com.ruoyi.lightkillPest.domain.device.LightKillPestDeviceInfo;
import com.ruoyi.lightkillPest.domain.device.SCDDeviceDao;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface LightKillPestDeviceMapper {

    /**
     * 查询所有的设备id
     * @return
     */
    public List<String> selectAllGuangXunId();

    /**
     * 插入设备信息
     * @param deviceList
     * @return
     */
    public int insertDeviceInfo(LightKillPestDeviceInfo deviceList);

    /**
     * 获取所有的设备信息
     * @return
     */
    public List<LightKillPestDeviceInfo> selectAllDeviceInfo();

    /**
     * 根据条件查询设备信息
     * @return
     */
    public List<LightKillPestDeviceInfo> selectDeviceInfoByCondition(LightKillPestDeviceInfo deviceInfo);

    /**
     * 根据ID查询设备信息
     * @return
     */
    public LightKillPestDeviceInfo selectDeviceById(Integer id);

    SCDDeviceDao selectDeviceByMac(String deviceMac);

    int insertDevice(SCDDeviceDao scdDeviceDao);


}
